package com.anjubao.parking.municipal.parkinglot.model;

import com.anjubao.parking.municipal.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalTime;

/**
 * 停车场计费规则详情
 *
 * @author zhuchunfeng
 */
@Getter
@Setter
@TableName("parking_lot_bill_rule_sub")
@ApiModel(value="ParkingLotBillRuleSub",description = "停车场计费规则详情")
@Accessors(chain = true)
public class ParkingLotBillRuleSub extends BaseEntity<ParkingLotBillRuleSub>{

    @TableField(value="id")
    @ApiModelProperty(name="id",value = "主键id")
    private Long id;

    @TableField(value="code")
    @ApiModelProperty(name="code",value = "计费详情编码")
    private String code;
//
//    @TableField(value="rule_id")
//    @ApiModelProperty(name="ruleId",value = "主表id")
//    private Long ruleId;

    @TableField(value="rule_type")
    @ApiModelProperty(name="ruleType",value = "收费规则类型，0：24小时统一标准收费规则  1：晚间收费规则")
    private Integer ruleType;

    @TableField(value="day_time_section")
    @ApiModelProperty(name="dayTimeSection",value = "白天时间段，多少分钟为一段，单位为秒,当rule_type=0时，复用此字段")
    private Integer dayTimeSection;

    @TableField(value="day_fee_section")
    @ApiModelProperty(name="dayFeeSection",value = "白天每一段收多少钱，单位为分，当rule_type=0时，复用此字段")
    private Integer dayFeeSection;

    @TableField(value="night_time_start")
    @ApiModelProperty(name="nightTimeStart",value = "晚间开始时间：hh:mm:ss")
    private LocalTime nightTimeStart;

    @TableField(value="night_time_end")
    @ApiModelProperty(name="nightTimeEnd",value = "晚间结束时间：hh:mm:ss")
    private LocalTime nightTimeEnd;

    @TableField(value="night_time_section")
    @ApiModelProperty(name="nightTimeSection",value = "晚间时间段，多少分钟为一段，单位为秒")
    private Integer nightTimeSection;

    @TableField(value="night_fee_section")
    @ApiModelProperty(name="nightFeeSection",value = "晚间每一段收多少钱，单位为分")
    private Integer nightFeeSection;

    @TableField(value="note")
    @ApiModelProperty(name="note",value = "备注")
    private String note;


}